package com.atguigu.gmall.list;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
@ComponentScan({"com.atguigu.gmall"})
@EnableDiscoveryClient
@EnableFeignClients(basePackages= {"com.atguigu.gmall"})
public class ServiceListApplication {
    public static void main(String[] args) {

        SpringApplication.run(ServiceListApplication.class,args);
    }
}


//class Operation{
//    int square(int n){
//        return n*n;
//    }
//}
//
//class Circle{
//    Operation op;//聚合
//    double pi=3.14;
//
//    double area(int radius){
//        op=new Operation();
//        int rsquare=op.square(radius);//代码的可重用性。
//        return pi*rsquare;
//    }
//
//    public static void main(String args[]){
//        Circle c=new Circle();
//        double result=c.area(5);
//        System.out.println(result);
//    }
//}